<template>
  <div>
    <el-container>
      <!-- 侧边栏     -->
      <el-aside width="200px">
        <el-menu>
          <el-menu-item index="1">用户管理</el-menu-item>
          <el-menu-item index="2">车辆管理</el-menu-item>
          <el-menu-item index="3">围栏管理</el-menu-item>
        </el-menu>
      </el-aside>

      <el-container>
        <el-header>
          <h1 style="color: #fff;background-color: #0aa1ed" >智慧车辆管理系统</h1>
        </el-header>
        <el-main>
          <el-table :data="vehicleArr">
            <el-table-column type="index" label="序号" width="80"  align="center"></el-table-column>
            <el-table-column prop="brand" label="品牌" align="center"></el-table-column>
            <el-table-column prop="model" label="车型" align="center"></el-table-column>
            <el-table-column prop="license" label="车牌号" align="center"></el-table-column>
            <el-table-column prop="color" label="颜色" align="center"></el-table-column>
            <el-table-column prop="km" label="公里数" align="center"></el-table-column>
          </el-table>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import {ref} from "vue";

//定义数组用来模拟从后端请求回来的车辆数据
const vehicleArr = ref([
  {brand:'奥迪',model:'A8',license:'粤A88888',color:'黑',km:10000000},
  {brand:'奥迪',model:'A8',license:'粤A88888',color:'黑',km:10000000},
  {brand:'奥迪',model:'A8',license:'粤A88888',color:'黑',km:10000000},
  {brand:'奥迪',model:'A8',license:'粤A88888',color:'黑',km:10000000},
  {brand:'奥迪',model:'A8',license:'粤A88888',color:'黑',km:10000000},
  {brand:'奥迪',model:'A8',license:'粤A88888',color:'黑',km:10000000},
  {brand:'奥迪',model:'A8',license:'粤A88888',color:'黑',km:10000000}
]);
</script>

<style scoped>

</style>